/*
 * Copyright (c) 2020, 2023, keyila All rights reserved.
 *
 */
package com.clp.study.designPattern.abstractFactoryPattern.easy;

/**
 * @author clp
 * @version 1.0
 */
public class ColorFactory extends AbstractFactory{
   public Color getColor(String color){
       if (color==null){
           return null;
       }
       if (color.equalsIgnoreCase("RED")){
           return new Red();
       }else if (color.equalsIgnoreCase("GREEN")){
           return new Green();
       }else if (color.equalsIgnoreCase("BLUE")){
           return new Blue();
       }
       return null;
   }

    @Override
    public Shape getShape(String shape) {
        return null;
    }
}
